package com.jinkeen.dddk

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent

class SystemStartReceiver : BroadcastReceiver() {

    override fun onReceive(context: Context, intent: Intent) {
        if (intent.action.equals("android.intent.action.BOOT_COMPLETED")) {
            val appIntent = context.packageManager.getLaunchIntentForPackage(context.packageName)
            context.startActivity(appIntent)
        }

    }
}